package com.geek.water.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.geek.water.entity.Area;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AreaMapper extends BaseMapper<Area> {
    @Select("SELECT * FROM area WHERE site_id = #{siteId}")
    List<Area> findAreasBySiteId(@Param("siteId") Long siteId);
}
